package predicate;

import java.util.HashMap;

public class Room {
	
	 /** 
	  * Variable.
	  */
	private String roomName;
	private HashMap<String, Session> listSession;
	private Long roomCapacity;
	
	 /** 
	  * Class constructor.
	  */
	public Room()
	{
		roomName = "unknow";
		listSession = new HashMap<String, Session>();
		setRoomCapacity(null);
	}
	
	/**
	 * Class constructor
	 * @param _roomName a <code>String</code>
	 */
	public Room( String _roomName )
	{
		roomName = _roomName;
		listSession = new HashMap<String, Session>();
		setRoomCapacity(null);
	}
	
	/**
	 * Assessor
	 * @return roomName
	 */
	public String getName()
	{
		return roomName;
	}
	
	/**
	 * Mutator
	 * @param _roomName a <code>String</code>
	 */
	public void setName( String _roomName)
	{
		roomName = _roomName;
	}
	
	/**
	 * Add a new session in room
	 * @param _session a <code>Session</code>
	 */
	public void addSession(Session _session)
	{
		listSession.put(_session.getName(), _session);
	}

	public void setCapacity(Long cap) {
		this.setRoomCapacity(cap);
	}

	public Long getRoomCapacity() {
		return roomCapacity;
	}

	public void setRoomCapacity(Long roomCapacity) {
		this.roomCapacity = roomCapacity;
	}
}